<?php
namespace app\admin\model;
use think\Model;

class Admin extends Model
{
    public function index()
    {	
    	return Admin::where(['staus'=>'1'])->paginate(10)->each(function($item, $key){
    			$item['head_image'] = IMG_PATH.$item['head_image'];
    			$item['logintime'] = date('Y-m-d H:i:s',$item['logintime']);
    			return $item;
		});
    }

    
}
